from datetime import datetime


def get_dayOfYear():
    # 获取当前的日期和时间
    now = datetime.now()
    # 计算当前日期是一年中的第几天
    day_of_year = now.timetuple().tm_yday
    return day_of_year


print("dayOfYear:", get_dayOfYear())
